package com.simple.crawler.constant;

public enum DateFormat {

    YYYYMMDD("yyyyMMdd", ""),
    YYYY_MM_DD_HH_MM_SSSS("yyyy-MM-dd HH:mm:ssss", "");

    private String format;

    private String desc;

    DateFormat(String format, String desc) {
        this.format = format;
        this.desc = desc;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "DateFormat{" +
                "format='" + format + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }

}
